# 测试2， 麦克风输入

import gradio as gr


def transcribe(audio):
    print(audio)
    return "这里显示音频"


ui = gr.Interface(
    fn=transcribe,
    inputs=gr.Audio(sources=["microphone"], type="filepath"),
    outputs="text"
).launch()

ui.launch()